package com.yk.airline.service.airline.impl;

import com.yk.airline.dao.airline.api.IAirLineDao;
import com.yk.airline.model.AirLineModel;
import com.yk.airline.service.airline.api.IAirLineService;
import com.yk.airline.service.common.impl.CommonServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Project Name:airlinecrawler
 * File Name:AirLineServiceImpl
 * Package Name:com.yk.airline.service.airlineservice.impl
 * Date:2018/1/31 10:35
 * Author:dengtianjia
 * Description:
 * Copyright (c) 2018, 重庆云凯科技有限公司 All Rights Reserved.
 */
@Service("airLineService")
public class AirLineServiceImpl extends CommonServiceImpl<AirLineModel> implements IAirLineService {

    @Resource(name = "airLineDao")
    private IAirLineDao airLineDao;

    @Override
    public List<AirLineModel> findAll() {
        return airLineDao.findAll();
    }

    @Override
    public int findTotalCount() {
        return airLineDao.findTotalCount();
    }
}
